<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>商品类型属性</title>
<hdjs/>
</head>
<body>
	<div class="wrap hd-form">
		<div class="menu_list">
			<ul>
				<li><a href="{|U:'add'}">添加类型属性</a></li>
				<li style="margin-bottom:10px;">
					<select>
						<option value="0">==商品分类==</option>
						<list from='$goods_type' name='$gt'>		
							<option value="{$gt.cat_id}" <if value="{$gt.cat_id} eq {$cat_id}">selected=""</if>>{$gt.cat_name}</option>
						</list>
					</select>
				</li>
			</ul>
		</div>
		<table class="table2">
			<thead>
				<tr>
					<td>ID</td>
					<td>属性名称</td>
					<td>属性类型</td>
					<td>属性值</td>
					<td>录入方式</td>
					<td class="w200">操作</td>
				</tr>
			</thead>
			<tbody>
			<list from="$data" name="$d">
				<tr>
					<td>{$d.attr_id}</td>
					<td>{$d.attr_name}</td>
					<td>{$d.attr_type_text}</td>
					<td>{$d.attr_value}</td>
					<td>{$d.attr_input_type_text}</td>
					<td>
						<a href="{|U:'edit',array('attr_id'=>$d['attr_id'])}">编辑</a> |
						<a href="{|U:'del',array('attr_id'=>$d['attr_id'])}" onclick="return confirm('确定删除吗？')">删除</a>
					</td>
				</tr>
			</list>
			</tbody>
		</table>
	</div>
	<js file="__CONTROLLER_VIEW__/js/index.js">
</body>
</html>